package org.smile.strate;

import java.util.HashMap;
import java.util.Map;
/**
 * 
 * @author 胡真山
 *
 */
public class ActionElement {
	/**
	 * action的名称 是在strate.xml 文件中配置的name 属性的对应的值
	 */
	private String name;
	/**
	 * 类名
	 */
	private String clazz;
	/**
	 * 方法
	 */
	private String method;
	
	private String space;
	/**
	 * 跳转的集合
	 */
	private Map<String,ActionForward> forwards=new HashMap<String,ActionForward>();
	public String getName() {
		return name;
	}
	/**
	 * 添加一个forward
	 * @param forward
	 */
	public void putForward(ActionForward forward){
		this.forwards.put(forward.getName(), forward);
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public String getClazz() {
		return clazz;
	}
	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public Map<String, ActionForward> getForwards() {
		return forwards;
	}
	public void setForwards(Map<String, ActionForward> forwards) {
		this.forwards = forwards;
	}
	public String getSpace() {
		return space;
	}
	public void setSpace(String space) {
		this.space = space;
	}
	
}
